libxl: make libxl__wait_for_device_model use libxl__spawn_starrting directly
authorIan Campbell <ian.campbell@citrix.com>
Tue, 27 Sep 2011 17:03:11 +0000 (18:03 +0100)
committerIan Campbell <ian.campbell@citrix.com>
Tue, 27 Sep 2011 17:03:11 +0000 (18:03 +0100)
commit9baf395529416d54844fcc7bff0b9b9445c7d023
treea2dc72c042ecfaa6cd8146787f14742963cbc0fa
parentaf785dee41395dbf3b76ce47f7e9339976c10d55
libxl: make libxl__wait_for_device_model use libxl__spawn_starrting directly

Instead of indirecting via libxl_device_model_starting. This fixes a
segmentation fault using stubdomains where starting->for_spawn is
(validly) NULL because starting a stubdom doesn't need to spawn a
process.

Most callers of libxl__wait_for_device_model already pass NULL for
this variable (because they are not on the starting path) so on
libxl__confirm_device_model_startup needs to change.

Reported-by: Jeremy Fitzhardinge <jeremy@goop.org>
Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>
Committed-by: Ian Jackson <ian.jackson@eu.citrix.com>
tools/libxl/libxl_device.c
tools/libxl/libxl_dm.c
tools/libxl/libxl_internal.h